package com.liuchuanzheng.lcz_study_demo

import android.app.Application
import android.content.Context
import com.liuchuanzheng.lcz_study_demo.util.log.LogUtil
import com.liuchuanzheng.lcz_study_demo.hook.HookHelper
import java.lang.Exception


/**
 * @author 刘传政
 * @date 2021/7/27 13:37
 * QQ:1052374416
 * 电话:18501231486
 * 作用:
 * 注意事项:
 */
class MyApplication:Application() {
    override fun onCreate() {
        super.onCreate()
        LogUtil.init()


    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        //测试hook技术
       /* try {
//            HookHelper.hookAMS()
//            HookHelper.hookHandler()
            HookHelper.hookInstrumentation(base)
        } catch (e: Exception) {
            e.printStackTrace()
        }*/
    }
}